Diagnose file descriptor leaks and resource exhaustion by inspecting open files in /proc/fd/ or using lsof.